package cn.wolfcode.wolf2w.util;

import cn.wolfcode.wolf2w.exception.LogicException;
import org.springframework.util.StringUtils;

/**
 * 判断字符串是否为空
 */
public class AsserUtil {

    public static void isEmpty(String str,String msg){
        if (!StringUtils.hasLength(str)){
            throw new LogicException(msg+"不能为空!");
        }
    }
}
